<script setup lang="ts">
import BasicLayout from './layouts/BasicLayout.vue'
import { useRouter, useRoute } from 'vue-router'
import { onMounted } from 'vue'

const doInit = () => {
  console.log('欢迎来到我的项目')
}

const route = useRoute()
onMounted(() => {
  doInit()
})
</script>

<template>
  <div id="app">
    <template v-if="route.path.startsWith('/user')">
      <router-view />
    </template>
    <template v-else>
      <BasicLayout />
    </template>
  </div>
</template>

<style>
#app {
}
</style>
